﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using uPLibrary.Networking.M2Mqtt.Messages;

namespace Model
{
    public class MQConfig
    {
        /// <summary>
        /// MQTT链接的Ip
        /// </summary>
        public string MQTTIP = "8.134.112.231";
        /// <summary>
        /// MQTT链接的MQTTPort
        /// </summary>
        public int MQTTPort = 1883;
        /// <summary>
        /// MQTT链接的设备编号
        /// </summary>
        public string sbbh;
        /// <summary>
        /// MQTT链接的
        /// </summary>
        public MqttMsgBase MsgBase ;
        /// <summary>
        /// MQTT链接的topic
        /// </summary>
        public string[] topic;
        /// <summary>
        /// MQTT链接的username
        /// </summary>
        public string username = "123";

        /// <summary>
        /// MQTT链接的Password
        /// </summary>
        public string password = "tk123456";
		/// <summary>
		/// Mqtt当前发送的字符串
		/// </summary>
		public string SendMsg = "";
        /// <summary>
        /// 当前发送下标
        /// </summary>
		public int nowindex = 0;
		/// <summary>
		/// 流水码长度
		/// </summary>
		public int streamlength = 0;
        /// <summary>
        /// 间隔时间
        /// </summary>
		public int waittime = 3000;
       
    }
}
